﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" 
    x:Class="LunchRoller.DisplayRollResult"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="728"
    shell:SystemTray.IsVisible="False"
       d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}" Background="{StaticResource BackgroudBrush}"

    >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="{StaticResource BackgroudBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="史上最难的决断——午饭吃啥" Style="{StaticResource PhoneTextNormalStyle}" Foreground="{StaticResource ForeColor}"/>
            <TextBlock x:Name="PageTitle" Text="结果揭晓！" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="{StaticResource ForeColor}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="0.5*"/>
        		<ColumnDefinition Width="0.5*"/>
        	</Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="120*" />
                <RowDefinition Height="120*" />
                <RowDefinition Height="120*" />
                <RowDefinition Height="120*" />
                <RowDefinition Height="120*" />
                <RowDefinition Height="7*" />
            </Grid.RowDefinitions>
            <TextBlock  Margin="76,0,0,8" x:Name="textBlock1" VerticalAlignment="Bottom" FontSize="24" d:LayoutOverrides="GridBox" HorizontalAlignment="Left" Width="211" Foreground="{StaticResource ForeColor}" Grid.ColumnSpan="3" ><Run Text="今天"/><Run Text="要进行的饭醉"/></TextBlock>
            <TextBlock  Margin="76,23,0,8" x:Name="textBlock2" Text="饭醉分子有" Grid.Row="2" FontSize="24" d:LayoutOverrides="Height" Foreground="{StaticResource ForeColor}" HorizontalAlignment="Left" Width="211" Grid.ColumnSpan="3" />
            <TextBlock  x:Name="textBlock3" Text="{Binding DecidedResult.Place}" Grid.Row="1" Grid.ColumnSpan="2"  HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="40" Foreground="{StaticResource ForeColor}" />
    <ListBox  Grid.Row="3"  ItemsSource="{Binding DecidedResult.Person}" ItemsPanel="{StaticResource WarpItemsPanelTemplate}" Margin="33,20,33,17" Grid.ColumnSpan="2" Grid.RowSpan="2" Foreground="{StaticResource ForeColor}" Background="{StaticResource ItemTransBackground}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Margin="4,0,4,0" Text="{Binding Name}" FontSize="28" TextDecorations="Underline" Foreground="{StaticResource ForeColor}"></TextBlock>
                    </DataTemplate>
                </ListBox.ItemTemplate>

            </ListBox>
        </Grid>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="{StaticResource ApplicationBarBGColor}" ForegroundColor="{StaticResource ApplicationBarFGColor}">
            <shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.share.rest.png" Text="发送给所有人"/>
            <shell:ApplicationBarIconButton IconUri="/Images/ApplicationBar/appbar.back.rest.png" Text="返回上级"/>
        
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
